package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @ author:lin tingfeng
 * @ data:2021/9/12-0:02
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("course")
public class Course {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "stuid")
    private String stuid;
    @TableField(value = "course")
    private String course;
    @TableField(value = "grade")
    private Integer grade;

    public Course(String stuid, String course, Integer grade) {
        this.stuid = stuid;
        this.course = course;
        this.grade = grade;
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}